Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 29, 2025

Enable hot reload refresh script injection on 404 responses.

Description

Previously, after a 404 re-execution (e.g. via UseStatusCodePagesWithReExecute), hot reload actions stopped because the refresh script was not injected on the 404 response. Change permits injection for 404, adds a log when injection is skipped, and replaces the single 200-only test with positive/negative injection tests. Further refinement of the filtering logic may come later.

Fixes dotnet/aspnetcore#63831

Customer Impact

Developers hitting a 404 during development lost hot reload thereafter, forcing manual refresh/restarts and slowing inner-loop productivity.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Justification: Narrow conditional change (adds 404), added tests, no behavioral impact outside dev hot reload script injection path.

Verification

  • Manual (repro scenario validated)
  • Automated (new unit tests)

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@github-actions github-actions bot requested a review from a team as a code owner September 29, 2025 13:06
@ilonatommy
Copy link
Member

All the failures are not related.

@SimonZhao888
Copy link
Member

Same issue as #50999

@nagilson
Copy link
Member

Note that this is only the --target=aarch64-linux-gnu issue, not the other issue embedded there in.

@lewing lewing requested a review from tmat September 30, 2025 20:22
@lewing lewing changed the title [release/10.0.1xx] Allow hot reload refresh script injection for 404 status code [release/10.0.1xx][HotReload] Allow hot reload refresh script injection for 404 status code Sep 30, 2025
@javiercn javiercn force-pushed the backport/pr-51027-to-release/10.0.1xx branch from 91af25c to 406a0c7 Compare October 2, 2025 09:06
@ilonatommy ilonatommy closed this Oct 2, 2025
@ilonatommy ilonatommy reopened this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch Servicing-consider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants